<?php
/*
// +----------------------------------------------------------------------------------------
// | Icoterie Development Framework Intelligence Enterprise Management Priority Selective
// +----------------------------------------------------------------------------------------
// | Copyright (c) [2019] [Honor Full Epoch Educational Science Technology Hebei Co., Ltd.]
// | website  http://dev.icoterie.top http://www.ihfe.top
// +----------------------------------------------------------------------------------------
// | [Icoterie Development Framework] is licensed under the Mulan PSL v2.
// +----------------------------------------------------------------------------------------
// | You can use this software according to the terms and conditions of the Mulan PSL v2.
// +----------------------------------------------------------------------------------------
// | Licensed ( http://license.coscl.org.cn/MulanPSL2 )
// +----------------------------------------------------------------------------------------
// | THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER
// | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR
// | FIT FOR A PARTICULAR PURPOSE.
// +----------------------------------------------------------------------------------------
// | See the Mulan PSL v2 for more details.
// +----------------------------------------------------------------------------------------
// | Author: Reflux Lewse,Red Shadow Sue
// +----------------------------------------------------------------------------------------
// | 连接配置,数据库支持mysql,sqlite,pgsql,oracle
// +----------------------------------------------------------------------------------------
*/

return [
	'default'	=>	'mysql',/*指定数据库类型*/
	'connections'	=>	[
		'mysql'	=>	[
			'driver'	=> 'mysql',/*数据库类型*/
			'host'		=> 'localhost',/*数据库服务器地址*/
			'database'	=> 'icoterie',/*数据库名称*/
			'username'	=> 'root',/*数据库用户名*/
			'password'	=> '',/*数据库密码*/
			'charset'	=> 'utf8mb4',/*数据库字符集*/
			'port' => 3306,  /*数据库端口*/
			'collation'	=> 'utf8mb4_unicode_ci',/*数据表编码*/
			'prefix'	 => 'idf_'/*数据表前缀*/
		],
		'sqlite'	=>	[
			'driver' => 'sqlite',//数据库类型*/
			'database' => DEV_PATH.'data/icoterie.db',/*数据库文件路径*/
			'prefix' => 'sm_'/*数据表前缀*/
		],
		'pgsql'	=>	[
			'driver'	=> 'pgsql',/*数据库类型*/
			'host'		=> 'localhost',/*数据库服务器地址*/
			'database'	=> 'icoterie',/*数据库名称*/
			'username'	=> 'root',/*数据库用户名*/
			'password'	=> '',/*数据库密码*/
			'charset'	=> 'utf8mb4',/*数据库字符集*/
			'port' => 3306,  /*数据库端口*/
			'collation'	=> 'utf8mb4_unicode_ci',/*数据表编码*/
			'prefix'	 => 'idf_'/*数据表前缀*/
		],
		'oracle'	=>	[
			'driver'	=> 'oracle',/*数据库类型*/
			'host'		=> 'localhost:8000',/*数据库服务器地址*/
			'database'	=> 'icoterie',/*数据库名称*/
			'username'	=> 'root',/*数据库用户名*/
			'password'	=> '',/*数据库密码*/
			'charset'	=> 'utf8mb4',/*数据库字符集*/
		],
		
	],
];